class PipeStatic:
    # 风险等级
    risk_lv_map = {
        'high': 3,
        'medium': 2,
        'low': 1
    }
    # 材料分数映射
    material_scores = {
        'steel': 1.0,
        'cast_iron': 0.9,
        'concrete': 0.8,
        'plastic': 0.7,

        '钢': 1.0,  # 6
        '铸铁': 0.9,  # 7
        '不锈钢管': 1.0,  # 12
        '镀锌钢管': 1.0,  # 13
        '焊接钢管': 1.0,  # 14
        '涂塑钢管': 1.0,  # 17
        '衬塑钢管': 1.0,  # 18
        '铝塑': 1.0,  # 10
        '铜管': 0.9,  # 11

        '砼': 0.8,  # 8

        'PVC': 0.7,  # 1
        'UPVC': 0.7,  # 2
        'PE': 0.7,  # 3
        'PPR': 0.7,  # 4
        'PUC': 0.7,  # 5
        'PVC-C': 0.7,  # 15
        'ABS': 0.7,  # 16
        'HDPE': 0.7,  # 19
        'FRPP': 0.7,  # 20
        '聚烯烃复合管': 0.7,  # 9
        '其它': 0.75,  # 10
        'other': 0.75
    }
    # 材料的生命周期
    material_life = {
        'cast_iron': 30,  # average of 25 - 35 for grey cast iron
        'ductile_iron': 50,
        'steel': 20,  # average of 15 - 25 for galvanized steel
        'concrete': 30,

        '钢': 20,  # 6
        '铸铁': 30,  # 7
        '不锈钢管': 20,  # 12
        '镀锌钢管': 20,  # 13
        '焊接钢管': 20,  # 14
        '涂塑钢管': 20,  # 17
        '衬塑钢管': 20,  # 18
        '铝塑': 20,  # 10
        '铜管': 18,  # 11

        '砼': 30,  # 8

        'PVC': 45,  # 1
        'UPVC': 45,  # 2
        'PE': 60,  # 3
        'PPR': 45,  # 4
        'PUC': 45,  # 5
        'PVC-C': 45,  # 15
        'ABS': 45,  # 16
        'HDPE': 60,  # 19
        'FRPP': 45,  # 20
        '聚烯烃复合管': 60,  # 9
        '其它': 30,  # 10
        'other': 30
    }
